<?php
    include_once 'includes/utilities.php';
    OpenDB();
    $paciente = is_numeric($_POST["id"]) ? $_POST["id"] : 0;
    $query = "select obra_social as OS, numero_afiliado as AF from paciente        
        where id_paciente = ".$paciente;
    $paciente = GetSQL($query);
?>
{"OS": "<?= $paciente[0]["OS"]?>", "AF": "<?= $paciente[0]["AF"]?>"}

